package com.example.LibrarySystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.LibrarySystem.pojo.Classes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ClassesMapper extends BaseMapper<Classes> {
    /**
     * 根据id删除数据 (不是真的删除 保留数据)
     * @param id
     * @return
     */
    @Update("update classes set soft_del = 0 where id = #{id}")
    public int delById(int id);
}
